package com.jy.modules.cims.data.dto;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 额度释放参数实体
 */
public class QuotaDetailUnlockParamDto {
	private String quotaType; // 额度类型(贷款或债权)
	private String dealCode; // 交易流水号
	private String source = "1"; // 释放来源：1-债权交易；2-额度
	private List<QuotaDetailUnlockParamDto.LoanUnlockInfo> unlockList;
	private List<QuotaDetailUnlockParamDto.CreditRightUnlockInfo> creditRightUnlockList;
	
    public String getQuotaType() {
		return quotaType;
	}

	public void setQuotaType(String quotaType) {
		this.quotaType = quotaType;
	}

	public List<LoanUnlockInfo> getUnlockList() {
		return unlockList;
	}

	public void setUnlockList(List<LoanUnlockInfo> unlockList) {
		this.unlockList = unlockList;
	}

	public String getDealCode() {
		return dealCode;
	}

	public void setDealCode(String dealCode) {
		this.dealCode = dealCode;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public List<QuotaDetailUnlockParamDto.CreditRightUnlockInfo> getCreditRightUnlockList() {
		return creditRightUnlockList;
	}
	
	public void setCreditRightUnlockList(List<QuotaDetailUnlockParamDto.CreditRightUnlockInfo> creditRightUnlockList) {
		this.creditRightUnlockList = creditRightUnlockList;
	}
	/**
     * 额度释放参数实体
     */
    public QuotaDetailUnlockParamDto() {
    }
    

	public static class LoanUnlockInfo {
    	private String contractNo; // 合同编号
    	private String unlockType; // 释放类型()
    	private String unlockReason; // 释放原因
		public String getContractNo() {
			return contractNo;
		}
		public void setContractNo(String contractNo) {
			this.contractNo = contractNo;
		}
		public String getUnlockType() {
			return unlockType;
		}
		public void setUnlockType(String unlockType) {
			this.unlockType = unlockType;
		}
		public String getUnlockReason() {
			return unlockReason;
		}
		public void setUnlockReason(String unlockReason) {
			this.unlockReason = unlockReason;
		}
    	
    }
    
    public static class CreditRightUnlockInfo{
		private String creditId;//债权协议编号
		private String transferId;//债权转让编号
		private BigDecimal freeValue;//本次释放债权价值
		private BigDecimal eachRepaymentValue;//本次释放对应月还金额
		private Date deliveryDate;//标的日日期
		private String isWhole;//是否全部释放
		private String contractNo;//合同号
		
        
        public Date getDeliveryDate() {
            return deliveryDate;
        }
        public void setDeliveryDate(Date deliveryDate) {
            this.deliveryDate = deliveryDate;
        }
        public String getIsWhole() {
            return isWhole;
        }
        public void setIsWhole(String isWhole) {
            this.isWhole = isWhole;
        }
        public String getCreditId() {
			return creditId;
		}
		public void setCreditId(String creditId) {
			this.creditId = creditId;
		}
		public String getTransferId() {
			return transferId;
		}
		public void setTransferId(String transferId) {
			this.transferId = transferId;
		}
		public BigDecimal getFreeValue() {
			return freeValue;
		}
		public void setFreeValue(BigDecimal freeValue) {
			this.freeValue = freeValue;
		}
		public BigDecimal getEachRepaymentValue() {
			return eachRepaymentValue;
		}
		public void setEachRepaymentValue(BigDecimal eachRepaymentValue) {
			this.eachRepaymentValue = eachRepaymentValue;
		}
		public String getContractNo() {
			return contractNo;
		}
		public void setContractNo(String contractNo) {
			this.contractNo = contractNo;
		}
	
    }
}